import prompt from '@system.prompt';

export default {
    data: {
        title: ""
    },
    onInit() {
        this.title = this.$t('strings.world');
    },
    onClick() {
        /*  prompt.showToast({
            message:'你好',
            duration:2000,
            bottom:200
        })*/

        prompt.showDialog({
            title: 'Title Info',
            message: 'Message Info',
            buttons: [
                
            ],
            success: function (data) {
                console.log('dialog success callback，click button : ' + data.index);
            },
            cancel: function () {
                console.log('dialog cancel callback');
            },
        });

    }
}
